package com.itheima.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.Sport;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


public class DataListener1 extends AnalysisEventListener<Sport> {
    private List<Sport> list=new ArrayList<>();

    public List<Sport> getList() {
        return list;
    }

    @Override
    public void invoke(Sport sport, AnalysisContext analysisContext) {
        list.add(sport);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

}
